package demo09Package;

public class demo09MyThread extends Thread {
	
	public demo09MyThread() {
		
	}
	
	public demo09MyThread(String name) {
		super(name);
	}
	
	@Override
	public void run() {
//		String name = getName();
//		System.out.println(name);
//		
//		Thread t = Thread.currentThread();
//		System.out.println(t);
//		
//		String name1 = t.getName();
//		System.out.println(name1);
		
//		System.out.println(getName());
//		System.out.println(Thread.currentThread());
		System.out.println(Thread.currentThread().getName());
	}
}
